-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add metadata url to RocksDB #30
Conversation
|
||
let number_of_tasks = tasks_buffer.len(); | ||
|
||
if number_of_tasks > MAX_BUFFERED_TASKS_TO_TAKE { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Dont we need to check
if number_of_tasks + metadata_info.len() > MAX_BUFFERED_TASKS_TO_TAKE
here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did you mean tasks_to_insert?
if number_of_tasks + tasks_to_insert.len() > MAX_BUFFERED_TASKS_TO_TAKE { | ||
tasks_to_insert.extend( | ||
tasks_buffer | ||
.drain(0..MAX_BUFFERED_TASKS_TO_TAKE - tasks_to_insert.len()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What if the tasks_to_insert already holds more than max_buffered_tasks_to_take?
What
This PR fixes insert metadata url to Postgre